package gam.n1.ins;

import com.google.common.collect.Lists;
import gam.n1.areas.Area;
import gam.n1.areas.AreaManager;

import java.util.Collections;
import java.util.List;
import java.util.Objects;

public abstract class BaseInsManager implements InsCreator{
    protected List<Instance> is;
    protected Area a;
    public BaseInsManager(Area a){
        this(null,a);
    }
    public BaseInsManager(List<Instance> i,Area a) {
        if (i != null){
            this.is = Lists.newArrayList(i);
        } else this.is = Lists.newArrayList();
        this.a = a;
    }


    @Override
    public List<Instance> b() {
        return Collections.unmodifiableList(is);
    }
}
